//
//  UIButton+Extension.swift
//  doudou_weibo
//
//  Created by apple on 2016/11/15.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title: String, textColor: UIColor, fontSize: UIFont, imageName: String) {
        self.init()
        
        self.setTitle(title, for: .normal)
        self.setTitleColor(textColor, for: .normal)
        self.titleLabel?.font = fontSize
        self.setBackgroundImage(UIImage.init(named: imageName), for: .normal)
        
    }
    
}
